<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td>
        <!-- START PANEL 1 -->
        {if $aQuizzes}
            <table style="width:100%;" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width:100%;vertical-align:top;padding-left:10px;" class="color">
                    <div style="font-size:9pt;">
                    	{str_replace text="`viewing_apaging_fromrow_apaging_tor_589`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }
                    </div>
                    <br />
                    {include file="`$sRootPath`/_blocks/pager.html"}
                    </td>
                </tr>
            </table>
            <!-- END PANEL 1 -->

            <br />

            <!-- START QUIZZES  -->
            <table style="width:100%;" cellpadding="8" cellspacing="4" border="0">
                <tr>
                {foreach from=$aQuizzes item=aQuiz name=quizzes}
                    <td style="width:50%;vertical-align:top;" class="border2">
                    <table style="width:100%;">
                        <tr>
                            <td style="font-size:8pt;text-align:left;" class="color">
                            <div style="padding-left:10px;"><br />
                            <div style="font-size:8pt;" class="color">
                            {if $aQuiz.can_delete}
                            	<div><a class="link_action" href="{url link='current' act='quiz_delete' quizid=$aQuiz.id}" onclick="return sure();">[ {language text="delete"} ]</a></div>
                            {/if}
                            <br />
                            <a href="{url link='public.user' name=$aQuiz.user}">
                                {Account::Avatar sUser=$aQuiz.user iSize=60 class="pic1" onmouseover="showInfo5('`$aQuiz.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
                            </a> <br />
                            <br />
                            <b>{$aQuiz.title|escape}</b></div>
                            <div style="padding-left:10px;font-size:8pt;" class="color">
                                <br />
                                {if $aQuiz.player}
                                {language text="last_taken_by"}: <a href="{url link='public.user' name=$aQuiz.player}">{$aQuiz.player}</a><br />
                                {language text="scored"}: {$aQuiz.avg_score|string_format:"%0.1f"}% <br />
                                {/if}
                                {str_replace text="`viewed_by_aquiz_views_member_s`" aQuiz_views="`$aQuiz.views`" } <br />
                                {if $aQuiz.can_take && !$aQuiz.is_taken}
                                <br />
                                <a class="link_action" href="{url link='public.quiz.take' id=$aQuiz.id foxseotitle=$aQuiz.title}">[ {language text="take_quiz_now"} ]</a>
                                {/if}
                                {if $aQuiz.is_owner || $aQuiz.is_taken}
                                <br/>
                                <a class="link_action" href="{url link='public.quiz.all-results' id=$aQuiz.id}">[ {language text="view_all_results"} ]</a>
                                {/if}
                            </div>
                            </div>
                            </td>

                        </tr>
                    </table>
                    </td>
                {if (0 == $smarty.foreach.quizzes.iteration % 2)}
                </tr>
                <tr>
                {/if}
                {/foreach}
                <td></td>
                </tr>
            </table>
            <!-- END QUIZES -->
            <br />
            {include file="`$sRootPath`/_blocks/pager.html"}
            <br />
            <br />

        {else}
        <br />
        <div class="message_info">{language text="there_are_no_quizzes_yet_1166"}</div>
        <br /><br />
        {/if}
    </td>
</tr>
</table>